﻿<?php
session_start();
//$set_password='123456';
@$set_password=file_get_contents("password.txt");//这里设置一个操作密码，避免瞎搞。
@$password = $_POST['password'];
if ($password != $set_password) {
    echo '设置密码输入错误;请联系管理人员';
} else {
    @$appid = trim($_POST['appid']);
    $myfile = fopen("appid.txt", "w");
    fwrite($myfile, $appid);
    fclose($myfile);
    echo 'appid设置成功'.'<br>';

    @$appsecret = trim($_POST['appsecret']);
    $myfile = fopen("appsecret.txt", "w");
    fwrite($myfile, $appsecret);
    fclose($myfile);
    echo 'appsecret设置成功'.'<br>';

    @$lianai = trim($_POST['lianai']);
    $myfile = fopen("lianai.txt", "w");
    fwrite($myfile, $lianai);
    fclose($myfile);
    echo '恋爱时间设置成功'.'<br>';

    @$shengri =trim($_POST['shengri']);
    $myfile = fopen("shengri.txt", "w");
    fwrite($myfile, $shengri);
    fclose($myfile);
    echo '生日时间设置成功'.'<br>';


    @$tianqiappid=trim($_POST['tianqiappid']);
    $myfile = fopen("tianqiappid.txt", "w");
    fwrite($myfile, $tianqiappid);
    fclose($myfile);
    echo '天气appid设置成功'.'<br>';

    @$tianqiappsecret=trim($_POST['tianqiappsecret']);
    $myfile = fopen("tianqiappsecret.txt", "w");
    fwrite($myfile, $tianqiappsecret);
    fclose($myfile);
    echo '天气appsecret设置成功'.'<br>';

    @$chengshi=trim($_POST['chengshi']);
    $myfile = fopen("chengshi.txt", "w");
    fwrite($myfile, $chengshi);
    fclose($myfile);
    echo '天气城市设置成功'.'<br>';

    @$qinghuatoken=trim($_POST['qinghuatoken']);
    $myfile = fopen("qinghuatoken.txt", "w");
    fwrite($myfile, $qinghuatoken);
    fclose($myfile);
    echo '情话token设置成功'.'<br>';

    @$mobanid=trim($_POST['mobanid']);
    $myfile = fopen("mobanid.txt", "w");
    fwrite($myfile, $mobanid);
    fclose($myfile);
    echo '模板id设置成功'.'<br>';

    @$huayu=trim($_POST['huayu']);
    $myfile = fopen("huayu.txt", "w");
    fwrite($myfile, $huayu);
    fclose($myfile);
    echo '对ta说的话设置成功'.'<br>';

}




